package com.faner.bean;

import net.sf.json.JSONObject;

public class WordBean {
    String word;
    String url;

    public WordBean(String word, String url) {
        this.word = word;
        this.url = url;
    }

    public JSONObject toJson() {
        JSONObject json = new JSONObject();
        json.put("word", word);
        json.put("url", url);
        return json;
    }

    public String getWord() {
        return word;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

}
